import "reflect-metadata"

export function Class(name?: string): ClassDecorator {
    return function (target) {
        console.log("start exec Class decorator on:", target.name, ",name:", name)
    }
}

export function Field(name?: string): PropertyDecorator {
    return function (target: any, propertyKey: string | symbol) {
        let v = Reflect.getMetadata('design:type', target, propertyKey)
        console.log("start exec Field decorator on:", target.constructor.name, ".", propertyKey, ",name:", name,",v:",v)

    }
}
